<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.pro.bean.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="zh-cn">
 	<head>

		<base href="<%=basePath%>">
    
    	<title>同一人物设定</title>

		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    	<meta http-equiv="description" content="this is my page">
    	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    	<link rel="stylesheet" type="text/css" href="<%=basePath%>css/bootstrap.css">
		<script type="text/javascript" src="<%=basePath%>js/bootstrap.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/jQuery .js"></script>
	</head>
<%
	List namelist=(List)request.getAttribute("names");
	Iterator it=namelist.iterator();
	String s = null;
	String first = null;
	System.out.println(namelist.size());
%>
	<body>
		<div class="container" style="width:960px">	
			<div class="col-sm-2">
				<h4><br></h4><h4>姓名</h4>
				<div class="list-group">
					
					<%
					while(it.hasNext()){ 
						if(first==null)first = s;
						//System.out.println("(String"+(String)it.next());
					s=(String)it.next();
					System.out.println("s:"+s);
					%>
					<a href="<%=basePath%>servlet/GetSameNameInfoServlet?name=<%=s %>" class="list-group-item" target="right"><%=s %></a>
					<%} %>
					<%--<script type="text/javascript">
						$(function(){
					 		$("#user").click(function(){
								$('#fra').prop('src','<%=basePath%>servlet/GetSameNameInfoServlet?name=<%=s %>');
							}); 
					</script>
				--%></div>
				
			</div>
			 
			<div class="container" style="width:80%;float:right">
				<iframe name="right" id="fra" src="<%=basePath%>servlet/GetSameNameInfoServlet?name=<%=first %>"  frameborder="0" style="width:100%;height:500px">
					<hr/>
				</iframe>
			</div>
			
		</div>
		<hr width="960px"/>
	</body>
</html>